package com.fanjun.learning.multithread.Activity_Object_Pattern;

/**
 * java异步消息接收模式
 */
public class Main {
    public static void main(String[] args){
        ActivityObject activityObject = ActivityObjectFactory.createActivityObject();
        MakerClientThread t1 = new MakerClientThread("Alice", activityObject);
        MakerClientThread t2 = new MakerClientThread("Bacsh", activityObject);
        DisplayClientThread t3 = new DisplayClientThread("Clieut", activityObject);
        t1.start();
        t2.start();
        t3.start();
    }
}
